<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./jquery-3.4.1.min.js"></script>
    <link rel="stylesheet" href="./drift.css">
    <title>漂流</title>
    <style>
        body {
            height: 10000px;
        }
        
        div#div {
            height: 100px;
        }
        
        div#diva {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            text-align: center;
            height: 200px;
        }
        
        div#diva li {
            display: block;
        }
    </style>
</head>

<body>
    图片漂流

    <div id="top">
        <ul class="lanui-drift-ul">
            <li class="lanui-drift-li" style="background-image: url(./img/1.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/2.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/3.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/4.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/5.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/6.jpg);"></li>
        </ul>
    </div>
    <div id="right">
        <ul class="lanui-drift-ul">
            <li class="lanui-drift-li" style="background-image: url(./img/1.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/2.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/3.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/4.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/5.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/6.jpg);"></li>
        </ul>
    </div>

    <div id="bottom">
        <ul class="lanui-drift-ul">
            <li class="lanui-drift-li" style="background-image: url(./img/1.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/2.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/3.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/4.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/5.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/6.jpg);"></li>
        </ul>
    </div>
    <div id="left">
        <ul class="lanui-drift-ul">
            <li class="lanui-drift-li" style="background-image: url(./img/1.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/2.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/3.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/4.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/5.jpg);"></li>
            <li class="lanui-drift-li" style="background-image: url(./img/6.jpg);"></li>
        </ul>
    </div>

    <script src="./drift.js"></script>
    <script>
        $(function() {
            var top1 = new lanui.drift();
            top1.init({
                el: "#top",
                pPosition: "top"
            });
            //var left = new lanui.drift();
            top1.init({
                el: "#left",
                pPosition: "left",
                space: 10
            });
            var right = new lanui.drift();
            right.init({
                el: "#right",
                pPosition: "right",
                space: 170
            });
            var bottom = new lanui.drift();
            bottom.init({
                el: "#bottom"
            });

        });
    </script>
</body>

</html>